if ($.exist('.zcgs_box')) {
	(function() {
		var box = $('.zcgs_box');


		//核名提交

		(function() {
			var ser = box.find('.ser_kk');
			var btn = ser.find('a.btn');

			btn.click(function() {
				var zihao = ser.find('input.zihao').val();
				var hangye = ser.find('input.hangye').val();
				var phone = ser.find('input.phone').val();
				var url = 'remember.php';

				if (zihao == '') {
					$.tip_fan('请输入字号');
					return false;
				}

				if (hangye == '') {
					$.tip_fan('请输入行业');
					return false;
				}



				if (phone == '') {
					$.tip_fan('请输入手机号码');
					return false;
				}

				if ($.checkPhone(phone)) {
					$.tip_fan('手机号码格式有误');
				} else {
					$.post(url, {
						type: 1,
						name: zihao,
						phone:phone,
						data: hangye
					}, function(data) {
						tip_suc('提交成功');
						setTimeout(function() {
							history.go(0);
						}, 2000);
					});
				}


			});
		})();



	})();
}
